<template>
	<div>
		<h1>姓名：{{ name }}</h1>
		<button @click="sendInfo">向父组件发送信息</button>
	</div>
</template>

<script>
	export default {
		name: "Student",
		props: ["receiveName"],
		data() {
			return {
				name: "张三",
			};
		},
		methods: {
			sendInfo() {
				this.receiveName(this.name,1,2,3,4);
			}
		}
	};
</script>

<style>
</style>